package com.clkj.zhonghui.pojo.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 * @date 2024-07-17 15:33:09
 * 购物车表
 */
@ApiModel( value ="t_zh_cart" )
@Table( name ="t_zh_cart" )
public class Cart  implements Serializable {

    @Id
   	@Column(name = "cart_id",updatable = false )
	@ApiModelProperty( value="null")
	private Integer cartId;

   	@Column(name = "user_id" )
	@ApiModelProperty( value="null")
	private Integer userId;

   	@Column(name = "product_id" )
	@ApiModelProperty( value="null")
	private Integer productId;

   	@Column(name = "format_id" )
	@ApiModelProperty( value="null")
	private Integer formatId;

   	@Column(name = "product_num" )
	@ApiModelProperty( value="null")
	private Integer productNum;

   	@Column(name = "shop_id" )
	@ApiModelProperty( value="null")
	private Integer shopId;

   	@Transient
    private String productName;
   	@Transient
    private String formatImg;
   	@Transient
    private String formatPrice;
   	@Transient
    private String formatSpecial;
   	@Transient
    private String formatName;

  public Integer getCartId() {
    return cartId;
  }

  public void setCartId(Integer cartId) {
    this.cartId = cartId;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public Integer getFormatId() {
    return formatId;
  }

  public void setFormatId(Integer formatId) {
    this.formatId = formatId;
  }


  public Integer getProductNum() {
    return productNum;
  }

  public void setProductNum(Integer productNum) {
    this.productNum = productNum;
  }


  public Integer getShopId() {
    return shopId;
  }

  public void setShopId(Integer shopId) {
    this.shopId = shopId;
  }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFormatImg() {
        return formatImg;
    }

    public void setFormatImg(String formatImg) {
        this.formatImg = formatImg;
    }

    public String getFormatPrice() {
        return formatPrice;
    }

    public void setFormatPrice(String formatPrice) {
        this.formatPrice = formatPrice;
    }

    public String getFormatSpecial() {
        return formatSpecial;
    }

    public void setFormatSpecial(String formatSpecial) {
        this.formatSpecial = formatSpecial;
    }

    public String getFormatName() {
        return formatName;
    }

    public void setFormatName(String formatName) {
        this.formatName = formatName;
    }
}
